#!/bin/bash
if [ -z $1 ];then
	echo "帮助：$0 <select|update|delete|insert>"
	exit 1
fi

db_user=root
db_passwd=WWW.1.com

mysqladmin -u${db_user} -p${db_passwd} extended-status 2>/dev/null| grep -w "Com_$1" |awk '{print $4}'
